home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_olv_commie_intro.cog < prev    next >
Text File  |  1999-11-15  |  5KB  |  181 lines

  1. # Jones 3D Cog Script
  2. #
  3. # olv_commie_intro.cog
  4. #
  5. # [DS]
  6. #
  7. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  8. # ==============================================================================
  9.  
  10. symbols
  11.  
  12.     message        startup
  13.     message        user0
  14.  
  15.     sound        music0=mus_gen_russbold1.wav                    local
  16.  
  17.     thing        commiepos0                                nolink
  18.     thing        commiepos1                                nolink
  19.     thing        commiepos2                                nolink
  20.     thing        commiepos3                                nolink
  21.     thing        commiepos4                                nolink
  22.     thing        movepos0                                nolink
  23.     thing        movepos1                                nolink
  24.     thing        movepos2                                nolink
  25.     thing        movepos2_1                                nolink
  26.     thing        movepos3                                nolink
  27.     thing        movepos4                                nolink
  28.  
  29.     thing        campos0                                nolink
  30.     thing        campos1                                nolink
  31.     thing        bridge_targ0                            nolink
  32.     thing        cam_targ0                                nolink
  33.     thing        cam_targ1                                nolink
  34.     thing        fader2                                nolink
  35.  
  36.     thing        player                                local
  37.     thing        commie0                                local 
  38.     thing        commie1                                local
  39.     thing        commie2                                local
  40.     thing        commie3                                local
  41.     thing        commie4                                local
  42.  
  43.     template    commie_tpl0=khaki_tokarev                    local
  44.     template    commie_tpl1=khaki_simonov                    local
  45.     template    commie_tpl2=khaki_mauser                    local
  46.     template    commie_tpl3=khaki_shotgun                    local
  47.     template    commie_tpl4=khaki_submach                    local
  48.     template    ghost_tpl=ghost                            local
  49.     
  50.     int        curcam                                local
  51.     int        done=0                                local
  52.         
  53.         cog             OLV_Commie_Grid  #added by JM                                             
  54.     cog            jag2_cog                                    # to send flee to jag.
  55.  
  56. end
  57.  
  58. # ==============================================================================
  59.  
  60. code
  61.  
  62. startup:
  63.  
  64.     player=GetLocalPlayerThing(); 
  65.     SetThingFlags(fader2, 0x80000);
  66.     return;
  67.  
  68. user0:
  69.     if(done == 1) return;
  70.     done=1;
  71.     curcam = GetCurrentCamera();
  72.     MakeMeStop();
  73.     DeselectWeaponWait(player);
  74.     StartCutscene(1);
  75.     SendMessage(jag2_cog, user1);
  76.  
  77.     # Show Bridge Close...
  78.         SetCameraFocus(2, campos1);
  79.         SetCameraSecondaryFocus(2, player);
  80.         SetCurrentCamera(2);
  81.         SetCameraFOV(60, 0, 0.0);
  82.         SetCameraFOV(30, 1, 4.0);
  83.         SetCameraLookInterp(2, 1);
  84.         SetCameraInterpSpeed(2, 3.0);
  85.         sleep(0.01);
  86.         SetCameraSecondaryFocus(2, bridge_targ0);
  87.         sleep(4.5);
  88.  
  89.     # Make commies...
  90.              commie0 = CreateThing(commie_tpl0, commiepos0);
  91.         AISetCutsceneMode(commie0);
  92.         CaptureThing(commie0);
  93.         ClearThingFlags(commie0, 0x80000);
  94.              commie1 = CreateThing(commie_tpl1, commiepos1);
  95.         AISetCutsceneMode(commie1);
  96.         CaptureThing(commie1);
  97.         ClearThingFlags(commie1, 0x80000);
  98.             commie2 = CreateThing(commie_tpl2, commiepos2);
  99.         AISetCutsceneMode(commie2);
  100.         CaptureThing(commie2);
  101.         ClearThingFlags(commie2, 0x80000);
  102.             commie3 = CreateThing(commie_tpl0, commiepos3);
  103.         AISetCutsceneMode(commie3);
  104.         CaptureThing(commie3);
  105.         ClearThingFlags(commie3, 0x80000);
  106.             commie4 = CreateThing(commie_tpl1, commiepos4);
  107.         AISetCutsceneMode(commie4);
  108.         CaptureThing(commie4);
  109.         ClearThingFlags(commie4, 0x80000);
  110.  
  111.     # Cut to the Valley Entry...
  112. #        ClearThingFlags(fader2, 0x80000);
  113. #        SetThingAlpha(fader2, 1.0);
  114.         SetCameraLookInterp(2, 0);
  115.         SetCameraFocus(2, campos0);
  116.         SetCameraSecondaryFocus(2, cam_targ0);
  117.         SetCurrentCamera(2);
  118.         SetCameraFOV(60, 0, 0.0);
  119.         sleep(0.01);
  120.         SetCameraFOV(30, 1, 3.0);
  121.         PlaySoundLocal(music0, 1.0, 0.0, 0x0, 0);        
  122. #        ThingFadeAnim(fader2, 1.0, 0.0, 0.5, 0);
  123.  
  124.     # Walk upper commies to position...
  125.         AISetMoveSpeed(commie0, 0.8);
  126.         AISetMoveSpeed(commie1, 1.0);
  127.         AISetLookThingEyeLevel(commie0, movepos0);
  128.         AISetLookThingEyeLevel(commie1, movepos1);
  129.         AISetMoveThing(commie0, movepos0, 0);
  130.         sleep(0.5);
  131.         AISetMoveThing(commie1, movepos1, 1);
  132.         sleep(0.5);
  133.  
  134.     # Walk mid level commie to position...
  135.         AISetMoveSpeed(commie3, 1.0);
  136.         AISetLookThingEyeLevel(commie3, movepos3);
  137.         AISetMoveThing(commie3, movepos3, 0);
  138.  
  139.     # Interp to valley floor...
  140.         SetCameraLookInterp(2, 1);
  141.         SetCameraInterpSpeed(2, 5.0);
  142.         sleep(0.01);
  143.         SetCameraSecondaryFocus(2, cam_targ1);
  144.  
  145.     # Walk lower commies to position...
  146.         sleep(2.0);
  147.         AISetMoveSpeed(commie2, 2.5);
  148.         AISetMoveSpeed(commie4, 1.0);
  149.         AISetLookThingEyeLevel(commie2, movepos2);
  150.         AISetLookThingEyeLevel(commie4, movepos4);
  151.         sleep(1.0);
  152.         AISetMoveThing(commie4, movepos4, 0);
  153.         AISetMoveThing(commie2, movepos2, 0);
  154.         sleep(3.0);
  155.         AISetLookThingEyeLevel(commie2, movepos2_1);
  156.         AISetMoveThing(commie2, movepos2_1, 1);
  157.  
  158.     # Return to Player control...
  159.         SetCameraInterpSpeed(2, 1.0);
  160.         SetCameraLookInterp(2, 0);
  161.         ResetCameraFOV(0, 0.0);
  162.         SetCurrentCamera(curcam);
  163.         SetThingFlags(fader2, 0x80000);
  164.         SetThingAlpha(player, 1.0);
  165.         ClearActorFlags(player, 0x200000);
  166.  
  167.         AIClearCutsceneMode(commie0);                     
  168.         AIClearCutsceneMode(commie1);
  169.         AIClearCutsceneMode(commie2);
  170.         AIClearCutsceneMode(commie3);
  171.         AIClearCutsceneMode(commie4);           
  172.                 
  173.         EndCutscene();
  174.                 
  175.                 SendMessageEx(OLV_Commie_Grid, 27, commie2, commie4, 1, 0);  //Added by JM
  176.  
  177.         return;
  178.  
  179. end
  180.  
  181.